import request from '@/utils/request'

// 查询耗材与别名列表
export function listSuppliesname(query) {
  return request({
    url: '/service/suppliesname/list',
    method: 'get',
    params: query
  })
}

// 查询耗材与别名详细
export function getSuppliesname(suppliesnameId) {
  return request({
    url: '/service/suppliesname/' + suppliesnameId,
    method: 'get'
  })
}

// 新增耗材与别名
export function addSuppliesname(data) {
  return request({
    url: '/service/suppliesname',
    method: 'post',
    data: data
  })
}

// 修改耗材与别名
export function updateSuppliesname(data) {
  return request({
    url: '/service/suppliesname',
    method: 'put',
    data: data
  })
}

// 删除耗材与别名
export function delSuppliesname(suppliesnameId) {
  return request({
    url: '/service/suppliesname/' + suppliesnameId,
    method: 'delete'
  })
}
